import java.util.Locale;
import java.util.ResourceBundle;

/**
 * Author: Daniel Michalski
 * Date: 14.03.13
 */

public class LRBDemo {
    public static void main(String[] args) {
        final String localeSrc =  "locale.SampleRB";

        ResourceBundle rb = ResourceBundle.getBundle(localeSrc);

        System.out.println("Polska wersja:");
        System.out.println("title: " + rb.getString("title"));
        System.out.println("StopText: " + rb.getString("StopText"));
        System.out.println("StartText: " + rb.getString("StartText"));

        System.out.println();

        rb = ResourceBundle.getBundle(localeSrc, Locale.GERMAN);
        System.out.println("Niemiecka wersja:");
        System.out.println("title: " + rb.getString("title"));
        System.out.println("StopText: " + rb.getString("StopText"));
        System.out.println("StartText: " + rb.getString("StartText"));
    }
}
